package com.tencent.iov.cowin.befsale.clue.dao.http.log;

import com.tencent.iov.cowin.befsale.clue.dao.http.log.request.ClueRecordBackendRequest;
import com.tencent.iov.cowin.befsale.clue.value.contants.ServiceConstant;
import com.software.boot.common.entity.Response;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: jiajia.li
 * @description:
 * @createDate: 2022-02-08
 **/

@FeignClient( name=ServiceConstant.ETL_LOG_SERVICE,url = ServiceConstant.ETL_LOG_HOST)
public interface EtlLogClient {

    /**
     * 线索埋点
     * @param request
     * @return
     */
    @PostMapping("/event-upload/v1/record/backend")
    @ApiOperation(value = "线索埋点", httpMethod = "POST", response = Response.class)
    Response backend(@RequestBody ClueRecordBackendRequest request);

}
